<template>
  <div>
    <child-dom :foo="foo" :bar="bar" @upFoo="reciveFoo"></child-dom>
  </div>
</template>

<script>
import ChildDom from "../components/attrs/ChildDom.vue";
export default {
  components: {
    ChildDom,
  },
  data() {
    return {
      foo: "foo",
      bar: "bar",
    };
  },
  methods: {
    reciveFoo(val) {
      this.foo = val;
      console.log("reciveFoo success");
    },
  },
};
</script>

<style lang="less" scoped>
</style>